import Home from '../views/home/home'
import Activity from '../views/activity/activity'
import Friend from '../views/friend/friend'
import Person from '../views/person/person'
import Nofound from '../views/common/nofound/nofound'
import Study from "@/views/modules/study/study";
import News from '@/views/modules/news/news'
import Login from '@/views/person/components/login/login'
import FrameDetail from '../views/common/newsDetail/frameDetail'
const routes = [
  {
    path: '/',
    element: <Home />,
    useNav: true,
    attr: {
      title: '首页'
    }
  },
  {
    path: '/activity',
    element: <Activity />,
    field: '',
    attr: {
      title: '活动列表',
    }
  },
  {
    path: '/friend',
    element: <Friend />,
    attr: {
      title: '好友列表',
    }
  },
  {
    path: '/person',
    element: <Person />,
    useNav: false,
    attr: {
      title: '个人详情',
    }
  },
  {
    path: '/study',
    element: <Study />,
    attr: {
      backArrow: true,
      title: '学习',
    }
  },
  {
    path: '/news',
    element: <News />,
    useNav: true,
    attr: {
      backArrow: true,
      title: '文章咨询',
    }
  },
  {
    path: '/frameDetail',
    element: <FrameDetail />,
    useNav: true,
    attr: {
      backArrow: true,
      title: '文章详情',
    }
  },
  {
    path: '/login',
    element: <Login />,
    useNav: true,
    attr: {
      title: '登|录',
      back: '返回-', // 返回区域的文字，如果为 null 的话，backArrow 也不会渲染
      backArrow: true, //是否显示返回区域的箭头，也可以传入 ReactNode 进行自定义	
      left: '', // ReactNode
      children: '',//	,标题	ReactNode	-
      right: '' //	右侧内容
    }
  },
  {
    path: '/404',
    element: <Nofound />
  }
]
export const tabs = [
  {
    path: '/',
    title: '首页',
    useNav: true
  },
  {
    path: '/activity',
    title: '活动列表',
  },
  {
    path: '/friend',
    title: '好友列表',
  },
  {
    path: '/person',
    title: '个人详情',
  }
]

export default routes